<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/22
 * Time: 11:47
 */
namespace app\admin\model;

use think\Model;
use traits\model\SoftDelete;

class Job extends Model
{
    use SoftDelete;
    protected  $deleteTime = 'job_delete_time';
    protected $name = 'job';
    protected $pk = 'job_id';
    public function getJobGetSnAttr($value){
        $data = [0=>'否',1=>'是'];
        return $data[$value];
    }
    public function getJobPhoneSnAttr($v){
        $data = [0=>'未接通',1=>'已接通'];
        return $data[$v];
    }
}